package com.example.logindemo.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.logindemo.demo.bean.Role;
import com.example.logindemo.demo.mapper.RoleMapper;
import com.example.logindemo.demo.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Autowired
    RoleMapper roleMapper;

    public Role getRole(Long id){
        return roleMapper.selectById(id);
    }
}
